<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>我的空间 | 我的相册</title>
    <link rel="stylesheet" href="../css/nav.css">
    <link rel="stylesheet" href="../css/index.css">
    <link rel="stylesheet" href="../css/base.css" />
    <link rel="stylesheet" href="../css/trip.css" />
    <style type="text/css">
        ul li {
            margin-top: 20px;
        }

        h4 {
            text-align: left;
        }

        hr {
            width: 100%;
            color: #987cb9;
            SIZE: 1px
        }

        header {
            text-align: center;
            background-color: #00b4ff;
        }

        * {
            margin: 0;
            padding: 0;
        }

        #wrap {
            width: 100%;
            height: 500px;
            border: 1px solid #000;
            position: relative;
            overflow: hidden;
        }

        #list {
            position: absolute;
            -webkit-animation: 10s move infinite linear;
            width: 200%;
        }

        #list li {
            list-style: none;
            float: left;
        }

        @-webkit-keyframes move {
            0% {
                left: 0;
            }

            100% {
                left: -500px;
            }
        }

        @keyframes move {
            0% {
                left: 0;
            }

            100% {
                left: -500px;
            }
        }

        #wrap:hover #list {
            -webkit-animation-play-state: paused;
        }
    </style>
</head>

<body>
    <div class="nav">
        <img src="../img/头像.jpg" alt="logo 图">
        <span class="title">个人空间</span>
        <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
            <a href="information.html" ><p>个人信息</p></a>
            <a href="interest.html"><p>兴趣爱好</p></a>
            <a href="food.html" ><p>生活记录</p></a>
            <a href="trip.html" ><p>我的相册</p></a>
            <a href="music.html" ><p>我的歌单</p></a>
            <a href="../index.html" ><p>返回首页</p></a>
    </div>

    <div id="main">
        <div class="record">
            <div class="title1">
                <h2>旅行&nbsp;.&nbsp;日志</h2>
                <p>Travel&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Log</p>
            </div>
            <div class="content1">
                <div class="box">
                    <img src="../img/log1.jpg" width="250px" height="140px" />
                    <div class="section">
                        <h2>鄯善<span>2019.05.03</span></h2>
                        <p>在鄯善看到了课本里的大漠孤烟，喜欢这种没有咸腥味儿的沙，风真的很大，卷起的沙尘盖了满头满脸。
                        </p>
                    </div>
                </div>
              <div class="box">
                <div class="section">
                        <h2>大理<span>2021.07.24</span></h2>
                  <p>我发现浪漫和自由是大理的颜色，这里的生活节奏很慢，看看书逛逛市场就过了一天。
                        </p>
                  <img src="../img/log2.jpg" width="250px" height="140px" /></div>
                </div>
                <div class="box">
                    <img src="../img/log3.jpg" width="250px" height="140px" />
                    <div class="section">
                        <h2>西岭<span>2022.02.03</span></h2>
                        <p>来的那天恰逢天晴，只一次的日照金山令我震撼，白雪山头金光洒满，冷暖短暂的相遇是绝美的灿烂。
                        </p>
                    </div>
                </div>
            </div>
        </div>
        <div class="photos">
            <div class="title2">
                <div class="line"></div>
                <h2>旅途&nbsp;.&nbsp;相册</h2>
                <p>Start&nbsp;Photos</p>
            </div>
            <div class="content2">
                <ul class="bigView">
                    <li id="img1"><img src="../img/trip1.jpg" width="700" height="400" /></li>
                    <li id="img2"><img src="../img/trip2.jpg" width="700" height="400" /></li>
                    <li id="img3"><img src="../img/trip3.jpg" width="700" height="400" /></li>
                    <li id="img4"><img src="../img/trip4.jpg" width="700" height="400" /></li>
                    <li id="img5"><img src="../img/trip5.jpg" width="700" height="400" /></li>
                    <li id="img6"><img src="../img/trip6.jpg" width="700" height="400" /></li>
                </ul>
                <div class="smallBox">

                    <ul class="smallView">
                        <li><a href="#img1"><img src="../img/trip1.jpg" /></a></li>
                        <li><a href="#img2"><img src="../img/trip2.jpg" /></a></li>
                        <li><a href="#img3"><img src="../img/trip3.jpg" /></a></li>
                        <li><a href="#img4"><img src="../img/trip4.jpg" /></a></li>
                        <li><a href="#img5"><img src="../img/trip5.jpg" /></a></li>
                        <li><a href="#img6"><img src="../img/trip6.jpg" /></a></li>
                    </ul>

                </div>
            </div>
        </div>

    </div>


	<div id="footer">
		<p>
			<a href="information.html">个人信息</a><span>|</span>
			<a href="interest.html">兴趣爱好</a><span>|</span>
			<a href="food.html">美食生活</a><span>|</span>
			<a href="music.html">我的歌单</a>
		</p>
        <p>© 2023 By <a href="../index.html" >Sukie</a>.</p>
	</div>
<audio 
	autoplay="autoplay"
   	controls="controls"
  	loop="loop"
  	preload="auto"
  	src="../music/山鬼.mp3">
</audio></body>
    <script>
        //鼠标点击出现爱心特效  这部分特效是从一个网页搬过来的  觉得挺好看的
        (function (window, document, undefined) {
            var hearts = [];
            window.requestAnimationFrame = (function () {
                return window.requestAnimationFrame ||
				window.webkitRequestAnimationFrame ||
				window.mozRequestAnimationFrame ||
				window.oRequestAnimationFrame ||
				window.msRequestAnimationFrame ||
				function (callback) {
				    setTimeout(callback, 1000 / 60);
				}
            })();
            init();
            function init() {
                css(".heart{width: 10px;height: 10px;position: fixed;background: #f00;transform: rotate(45deg);-webkit-transform: rotate(45deg);-moz-transform: rotate(45deg);}.heart:after,.heart:before{content: '';width: inherit;height: inherit;background: inherit;border-radius: 50%;-webkit-border-radius: 50%;-moz-border-radius: 50%;position: absolute;}.heart:after{top: -5px;}.heart:before{left: -5px;}");
                attachEvent();
                gameloop();
            }
            function gameloop() {
                for (var i = 0; i < hearts.length; i++) {
                    if (hearts[i].alpha <= 0) {
                        document.body.removeChild(hearts[i].el);
                        hearts.splice(i, 1);
                        continue;
                    }
                    hearts[i].y--;
                    hearts[i].scale += 0.004;
                    hearts[i].alpha -= 0.013;
                    hearts[i].el.style.cssText = "left:" + hearts[i].x + "px;top:" + hearts[i].y + "px;opacity:" + hearts[i].alpha + ";transform:scale(" + hearts[i].scale + "," + hearts[i].scale + ") rotate(45deg);background:" + hearts[i].color;
                }
                requestAnimationFrame(gameloop);
            }
            function attachEvent() {
                var old = typeof window.onclick === "function" && window.onclick;
                window.onclick = function (event) {
                    old && old();
                    createHeart(event);
                }
            }
            function createHeart(event) {
                var d = document.createElement("div");
                d.className = "heart";
                hearts.push({
                    el: d,
                    x: event.clientX - 5,
                    y: event.clientY - 5,
                    scale: 1,
                    alpha: 1,
                    color: randomColor()
                });
                document.body.appendChild(d);
            }
            function css(css) {
                var style = document.createElement("style");
                style.type = "text/css";
                try {
                    style.appendChild(document.createTextNode(css));
                } catch (ex) {
                    style.styleSheet.cssText = css;
                }
                document.getElementsByTagName('head')[0].appendChild(style);
            }
            function randomColor() {
                return "rgb(" + (~~(Math.random() * 255)) + "," + (~~(Math.random() * 255)) + "," + (~~(Math.random() * 255)) + ")";
            }
        })(window, document);
    </script>

</html>